﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Bom_Fini_1 : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Bom_Fini_1", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Bom_Fini_1", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Bom_Fini_1", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Bom_Fini_1", "UserName");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Bom_Fini_1", "No");

        [Column]
        public string Change_From_Lid_Code { get { return _Change_From_Lid_Code; } set { _Change_From_Lid_Code = value; EntityState.FieldChange("Change_From_Lid_Code"); } }
        private string _Change_From_Lid_Code;
        public static FieldInfo change_from_lid_code = new FieldInfo("mdc_Bom_Fini_1", "Change_From_Lid_Code");

        [Column]
        public string Change_From_Body_Code { get { return _Change_From_Body_Code; } set { _Change_From_Body_Code = value; EntityState.FieldChange("Change_From_Body_Code"); } }
        private string _Change_From_Body_Code;
        public static FieldInfo change_from_body_code = new FieldInfo("mdc_Bom_Fini_1", "Change_From_Body_Code");

        [Column]
        public string Change_To_Lid_Code { get { return _Change_To_Lid_Code; } set { _Change_To_Lid_Code = value; EntityState.FieldChange("Change_To_Lid_Code"); } }
        private string _Change_To_Lid_Code;
        public static FieldInfo change_to_lid_code = new FieldInfo("mdc_Bom_Fini_1", "Change_To_Lid_Code");

        [Column]
        public string Change_To_Body_Code { get { return _Change_To_Body_Code; } set { _Change_To_Body_Code = value; EntityState.FieldChange("Change_To_Body_Code"); } }
        private string _Change_To_Body_Code;
        public static FieldInfo change_to_body_code = new FieldInfo("mdc_Bom_Fini_1", "Change_To_Body_Code");

        [Column]
        public string Plant { get { return _Plant; } set { _Plant = value; EntityState.FieldChange("Plant"); } }
        private string _Plant;
        public static FieldInfo plant = new FieldInfo("mdc_Bom_Fini_1", "Plant");

        [Column]
        public string Remark { get { return _Remark; } set { _Remark = value; EntityState.FieldChange("Remark"); } }
        private string _Remark;
        public static FieldInfo remark = new FieldInfo("mdc_Bom_Fini_1", "Remark");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Bom_Fini_1", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Bom_Fini_1", "Status");
    }
}
